function gotoLanguageURL() 
{	
	var strLang = ""		// en or fr
	var iLangPos = 0;		// position of the language find
	var strEndURL = ""		// all url text after the langauge
	
	var strNewURL = ""		// new url
	var myurl = "" + window.top.location.href;
	var lookforEN = "en/";
	var lookforFR = "fr/";
	enfound = myurl.indexOf( lookforEN );	
	frfound = myurl.indexOf( lookforFR );

	// French URL if "Eng/" was found
	if( enfound > 0 ) 
	{	
		strLang = lookforFR;
		iLangPos = enfound;
	}	
	else if( frfound > 0 ) // English URL if "Fr/" was found
	{
		strLang = lookforEN;
		iLangPos = frfound;
	} // if 

	strEndURL = myurl.substring( ( iLangPos + strLang.length ), myurl.length );
	
	strNewURL = myurl.substring( 0, iLangPos ) + strLang + strEndURL;
	location.href = strNewURL;
}	// goToLanguageURL
//-->

function checknumber( form )
{
  // ** START **
  if (form.intQuantity.value <= 0 || isNaN(form.intQuantity.value)) {
    alert( "Please enter a positive number." );
    form.intQuantity.focus();
    return false;
  }
  return true;
  // ** END **
}
//-->

<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var msg="Twinkle Enterprises Ltd. - All Rights Reserved © \n\n";
var message = "Twinkle Enterprises - All Rights Reserved © \n\nPlease contact Twinkle Enterprises at support@twinkleglobe.com for more information regarding this image. All image and text which appear on the Twinkle Enterprises website are the exclusive property of Twinkle Enterprises and are protected under International Copyright laws.";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

function noway (){
	window.location="http://www.someplace.com/ie.html";
	alert(message);
}

//document.oncontextmenu =new Function mypopup(window.open("http://www.twinkleglobe.com/en/index.asp"));
//document.oncontextmenu=new Function("alert(message);return window.location='http://www.twinkleglobe.com/en/'; ")
document.oncontextmenu=new Function("alert(message);return false; ")
//document.oncontextmenu=new Function("return false") //no alert
// --> 



