function DisplayHeader()
{
document.open();
document.writeln("
");
document.writeln(" ");
document.writeln(" | ");
document.writeln(" ");
document.writeln(" | ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" | ");
document.writeln(" ");
document.writeln(" | ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln("  | ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" | ");
document.writeln("
");
document.writeln("
");
}
/////////////////////////////////////////////////////////////////////
function DisplayStatus()
{
document.open();
document.writeln("");
document.writeln(" ");
document.writeln(" ");
document.writeln("  | ");
document.writeln("
");
document.writeln(" ");
document.writeln(" | ");
document.writeln(" ");
document.writeln(" site map |");
document.writeln(" terms of use |");
document.writeln(" privacy policy |");
document.writeln(" company |");
document.writeln(" links |");
document.writeln(" ");
document.writeln(" ");
document.writeln("  | ");
document.writeln(" Copyright © 2010/2012 Envizion Systems Pty Ltd. All rights reserved.");
document.writeln(" ");
document.writeln(" | ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" | ");
document.writeln("
");
document.writeln("
");
}
/////////////////////////////////////////////////////////////////////
function DisplayStatusShade()
{
document.open();
document.writeln("");
document.writeln(" ");
document.writeln(" ");
document.writeln("  | ");
document.writeln("
");
document.writeln("
");
}
/////////////////////////////////////////////////////////////////////
function openPopup(url,x,y){
if (!x){x=760;};
if (!y){y=630;};
window.open(url,null,'toolbar=yes,menubar=no,resizable=yes,scrollbars=yes,width='+x+',height='+y)
}
/////////////////////////////////////////////////////////////////////
function openPopupFixed(url,x,y){
if (!x){x=760;};
if (!y){y=630;};
window.open(url,null,'toolbar=no,status=no,menubar=no,resizable=yes,scrollbars=no,width='+x+',height='+y)
}
/////////////////////////////////////////////////////////////////////
// Affiliate functions
/////////////////////////////////////////////////////////////////////
function queryField(opt)
{
var keyloc
var nextkey
var start
var opts
var optval
opts=self.location.search
keyloc = opts.indexOf("&" + opt + "=")
if (keyloc == -1) {
keyloc = opts.indexOf("?" + opt + "=")
}
if (keyloc == -1) {
return ""
}
nextkey = opts.indexOf("&",keyloc+1)
if (nextkey == -1) {
nextkey = opts.length
}
if (nextkey < keyloc) {
return ""
}
sval = keyloc+2+opt.length
optval = plustospace(unescape(opts.substring(sval,nextkey)))
return optval
}
/////////////////////////////////////////////////////////////////////
function plustospace(txt)
{
if (txt == "") { return txt }
var newtxt=""
var pos=0
var prev=0
var done=false
var tmp
while (!done) {
pos = txt.indexOf("+",prev)
if (prev >= txt.length) {
done = true
}
else if (pos == 0) {
prev=1
newtxt += " "
}
else if ((pos < 0) || (pos == "")) {
done = true
}
else {
if (pos > prev) {
newtxt += txt.substring(prev,pos)
}
newtxt += " "
prev=pos+1
}
}
newtxt += txt.substring(prev,txt.length)
return newtxt
}
/////////////////////////////////////////////////////////////////////
function writeCookie(cookie_name, cookie_value, cookie_life)
{
var today = new Date()
var expiry = new Date(today.getTime() + cookie_life * 24*60*60*1000)
var cookie_string =cookie_name + "=" + escape(cookie_value)
if (cookie_life){
cookie_string += "; expires=" + expiry.toGMTString()
}
cookie_string += "; path=" + "/"
document.cookie = cookie_string
}
/////////////////////////////////////////////////////////////////////
function readCookie(NameOfCookie)
{
if (document.cookie.length > 0) {
begin = document.cookie.indexOf(NameOfCookie+"=");
if (begin != -1) {
begin += NameOfCookie.length+1;
end = document.cookie.indexOf(";", begin);
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(begin, end));
}
}
return null;
}