﻿/************************************************/
if (self != top) top.location.href=self.location.href; //antiframe 
//if (self != top) top.location.replace(document.location); //antiframe 

/*
window.moveTo(0,0);
if (document.all) {
	top.window.resizeTo(screen.availWidth,screen.availHeight);
} else if (document.layers||document.getElementById) {
	
	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;}

}

*/
/************************************************/


isIE = navigator.appName.indexOf("Microsoft") != -1;
isMac = ((navigator.appVersion.indexOf("Mac") != -1) && isIE);
isNS6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5);

function getID(id){	
	if (navigator.appName.indexOf ("Microsoft") !=-1) {
		return window.document.getElementById(id);
	} else {
		return document.getElementById(id);
	}
}


function getFlash(movieName)
		{
		  if (window.document[movieName]) 
		  {
			  return window.document[movieName];
		  }
		  if (navigator.appName.indexOf("Microsoft Internet")==-1)
		  {
			if (document.embeds && document.embeds[movieName])
			  return document.embeds[movieName]; 
		  }
		  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		  {
			return document.getElementById(movieName);

		  } 
}

function con(l,q){
	var d=confirm(q);
	
	if(d){document.location.href=(l);}
}


function getURL(url){
	if(url!=''){
		
	if (navigator.appName.indexOf ("Microsoft") !=-1) {
		return window.document.location.pathname=(url);
	} else {
		return document.location.pathname=(url);
	}
		
		}
		
	}
	

function gostergizle(tag){
	var v = document.getElementById(tag);
		
	var vis=v.style.display

		if(vis=="block" || vis==""){
			v.style.display ="none";
		}else{
			v.style.display ="block";
		}

	
	
}


var checkLength = function() {
    var temp = document.search.elements['search'].value;
    temp = temp.replace(/ /g, '');
    if( temp.length < 3 ) { alert('Please use at least 3 characters'); return false; } return true;
};


