window.status="THE CV CENTRE - the uk's leading cv consultancy";

function rloadimages(){
	document.getElementById("trustseal").src="https://secure.trust-guard.com/seals/1497/security/small/gray";
/*	
	var allh2 = document.getElementsByTagName('H2');
	if (allh2.length){	
		allh2[0].style.borderTopWidth = '0';	
		allh2[0].style.paddingTop = '0';	
		allh2[0].style.marginTop = '6px';	
	}
*/
}

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

function enc(user,domain,ext,sometext,fcolor) {
	fontcolor = '<span>';
	if (fcolor == "switch") {
		fontcolor ='<span class="whiteblack">';
	}else if (fcolor != ''){
    	fontcolor = '<span style="color:' + fcolor + '">';
  	}
	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var text = user;
	text += '&#64;';
	text += domain;
	text += '.';
	text += ext;
        var end = fontcolor + text + '</span></a>';
	document.write('<a class="emaillink" href="');
	document.write(first+second+third);
	document.write(user);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext);
	document.write('?Subject=');
	document.write(sometext);
	document.write('">');
	document.write(end);
}

var WindowObjectReference = null; 

function openmbg(n,w,h)
{
 if (n == null){
    n = 'MBG.htm';
    w = 'mbgwindow';
    h = '380';
  }
  if(WindowObjectReference == null || WindowObjectReference.closed)  {
    WindowObjectReference = window.open(n,w,'width=600,height='+h+',left=30,top=0,resizable=yes');
  }else{
    WindowObjectReference.focus();
  };
}

var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];

