

//popup news
function popup(mylink, newsid)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href +"?newsid="+newsid,'news', 'width=700,height=700,scrollbars=yes');
return false;
}

var popupWindow=null;
function popupImg(jLink, jImg, jPath, jFolder){
var ahref;
if (typeof(jLink) == 'string')
   ahref=jLink;
else
   ahref=jLink.href;
if (jImg =='')
popupWindow= window.open("download2.asp?status=info", 'Info','width=300,height=200,scrollbars=no');

else  
popupWindow= window.open("download2.asp?img="+jImg+"&path="+jPath+"&folder="+jFolder, 'Image','width=350,height=420,scrollbars=no');
return false;
}
 
function parent_disable() {
if(popupWindow && !popupWindow.closed)
popupWindow.focus();
}

<!--
function confirm_download(a)
{

	var objdoc;
	var msg = "";
	var ab1=new Array();
	var ab2=new Array();
	var httpob=new ActiveXObject("Microsoft.XMLHTTP");
	httpob.open("POST","check.asp?user=" + a ,false);
	httpob.send();
	ab1=httpob.responseText;
	ab2=ab1.split("^");
	msg = ab2[0];
		if(ab2[1]=='found')
		{  
		 //alert("18");
		input_box=confirm(" Once you click OK to download, your credit amount will be deducted ");
		 

		 if (input_box==true){ return true; }
		 else{return false;} 		
		}  
       else
	    {
		alert("Permission denied. Your credit amount is 0" );
		return false;
		}

}

var newwindow2;
function poptastic(url)
{
	newwindow2=window.open(url,'Terms & Conditions');
	if (window.focus) {newwindow2.focus()}
}

<!--
//Disable right click script
var message="Sorry, right-click is prohibited";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->

<!--
//Disable select-text script (IE4+, NS6+)
///////////////////////////////////
//function disableselect(e){
//return false
//}
//function reEnable(){
//return true
//}
//if IE4+
//document.onselectstart=new Function ("return false")
//if NS6
//if (window.sidebar){
//document.onmousedown=disableselect
//document.onclick=reEnable
//}
window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" 
 && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" 
 && bVer < 4);
 var blink_speed=1000;
 var i=0;
 
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
}

//BLINKING
function Blink(layerName){
 if (NS4 || IE4) { 
 if(i%2==0)
 {
 eval(layerRef+'["'+layerName+'"]'+
 styleSwitch+'.visibility="visible"');
 }
 else
 {
 eval(layerRef+'["'+layerName+'"]'+
 styleSwitch+'.visibility="hidden"');
 }
 } 
 if(i<1)
 {
 i++;
 } 
 else
 {
 i--
 }
 setTimeout("Blink('"+layerName+"')",blink_speed);
}
//  End -->

ScrollSpeed = 300
ScrollChars = 1
function ScrollMarquee() {
window.setTimeout('ScrollMarquee()',ScrollSpeed);

var msg = document.marquee1.text.value; 
document.marquee1.text.value =
msg.substring(ScrollChars) +
msg.substring(0,ScrollChars); 
} 
