/*
if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {
	window.attachEvent("onload", alphaBackgrounds);
}
function alphaBackgrounds(){
	var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	for (i=0; i<document.all.length; i++){
		var bg = document.all[i].currentStyle.backgroundImage;
		if (itsAllGood && bg){
			if (bg.match(/\.png/i) != null){
				var mypng = bg.substring(5,bg.length-2);
				document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='scale')";
				document.all[i].style.backgroundImage = "url('/images/blank.gif')";
			}
		}
	}
}
*/

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

function FormValidate(){
	var sError = "";
	//alert(document.forms[0].elements[0].value);
	if(document.forms[0].elements[0].value==""){
		sError = "Please enter your " + document.forms[0].elements[0].name;
	} else if(document.forms[0].elements[0].value==""){
		sError = "Please enter your " + document.forms[0].elements[1].name;
	}
	if(sError=="")
		document.forms[0].submit();
	else
		alert(sError);
}

function tjsblocking(nr) {
	if (document.layers) {
		document.layers[nr].display = 'none';
	} else if (document.all) {
		document.all[nr].style.display = 'none';
	} else if (document.getElementById) {
		document.getElementById(nr).style.display = 'none';
	}
}

function tjsunblocking(nr)
{
	if (document.layers) {
		document.layers[nr].display = 'block';
	} else if (document.all) {
		document.all[nr].style.display = 'block';
	} else if (document.getElementById) {
		document.getElementById(nr).style.display = 'block';
	}
}

function setcontent(txt)
{
	if (document.layers) {
		document.layers['divContentLeftSubHeaderInsert2'].innerHTML = txt;
	} else if (document.all) {
		document.all['divContentLeftSubHeaderInsert2'].innerHTML = txt;
	} else if (document.getElementById) {
		document.getElementById('divContentLeftSubHeaderInsert2').innerHTML = txt;
	}
	document.newsletter.name.focus();
}

function showfloat(n) {
	for(i=1; i<6; i++) {
		tjsblocking('contentfloat'+i);
		//tjsblocking('contentfloatheadr'+i);
	}
	//document.elements['divSomeNonsenseInsert'].bgColor = '#333333';
	tjsunblocking('divSomeNonsense');
	tjsunblocking('contentfloat'+n);
	//tjsunblocking('contentfloatheadr'+n);
}

function hidefloat(n) {
	tjsblocking('divSomeNonsense');
	tjsblocking('contentfloat'+n);
	//document.elements['divSomeNonsenseInsert'].bgColor = 'transparent';
	//tjsblocking('contentfloatheadr'+n);
}

function showhint(n) {
	switch (n){

	case 1: 
		setcontent('<p><img src="images/lquote.gif" alt="quote" width="12" height="10" />Always check with the original seller before accepting a second chance offer. Go to the ORIGINAL listing and contact the seller through that route to ensure that they are who they say they are.<img src="images/rquote.gif" alt="quote" width="12" height="10" /></p>');
		break;

	case 2: 
		setcontent('<p><img src="images/lquote.gif" alt="quote" width="12" height="10" />Always hover over a link before clicking on it, or look in the address bar after clicking on a link. If the text shown does not match the original link or just looks ridiculous, it is likely to be fake. Hover over this link for example: <a href="http://www.carsite.co.uk">www.carsite.co.uk</a>. If you look at the bottom of your screen or in the pop up box that may appear you will see the text matches the wording. Now hover over this one: <a href="http://ibeai.atlasweb.cz/eBayISAPIdll2 Verify Htm Ebay Seller Suspended Account Verification SubForm Account Status Update Credit Card On File/Login.htm">www.carsite.co.uk</a>. This is the type of thing to look out for - wording that is far from what you would expect should raise red flags.<img src="images/rquote.gif" alt="quote" width="12" height="10" /></p>');
		break;

	case 3: 
		setcontent('<p><img src="images/lquote.gif" alt="quote" width="12" height="10" />Always ensure when making a payment online that the locked padlock or unbroken key symbol is shown in the bottom right of your browser window before sending card details. The beginning of the retailers internet address will change from “http” to “https” when a purchase is made using a secure connection.<img src="images/rquote.gif" alt="quote" width="12" height="10" /></p>');
		break;

	case 4: 
		setcontent('<p><img src="images/lquote.gif" alt="quote" width="12" height="10" />Keep an eye out for sellers/bidders that have been dormant for some time, or one with whom the item being sold is completely different than other previously sold items by this seller. Ask questions and get to know your seller before you buy! <img src="images/rquote.gif" alt="quote" width="12" height="10" /></p>');
		break;

	case 5: 
		setcontent('<p><img src="images/lquote.gif" alt="quote" width="12" height="10" />Fraudulent scammers actually may go as far as to ask their potential buyers not to inform Western Union that the payment is for a purchase of any sort, but for a friend or other excuse - the explanation that the seller will have to pay taxes on it to the state. BEWARE! <img src="images/rquote.gif" alt="quote" width="12" height="10" /></p>');
		break;
	}
}