var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try
{
var pageTracker = _gat._getTracker("UA-11064973-1");
pageTracker._trackPageview();
} catch(err) {}

var myKeyword = "";


function checkBrowser()
{
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
} 
bw=new checkBrowser()
function showHide(div,nest)
{
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	if(obj.visibility=='visible' || obj.visibility=='show') obj.visibility='hidden'
	else obj.visibility='visible'
}
function index(){

	document.location.href="index.html";
	}
///Function for JSP Page 	
	function index1(){
	document.location.href="http://www.ibs-softsolutions.com/eng/index.html";
	}
	function download1(){
	parent.location.href="http://www.ibs-softsolutions.com/eng/download.html";
	}
function sitemap1(){
	window.open("http://www.ibs-softsolutions.com/eng/sitemap.html","", "scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,height=700,width=900, top=0, left=50");
	}	
function closeopenwind(){window.close();}

//////////////////////////////////////////
function printpage(){window.print();}
function mdm(){parent.location.href="mdmref.html";}
function ibsspacemgmt(){parent.location.href="Ibs-Space-Management.html";}	
function assortment(){parent.location.href="Ibs-Assortment.html";}	
function retailoperationsuite(){parent.location.href="Retail-Operation-Suite.html";}
function technology(){parent.location.href="Soft-Architecture.html";}
function testimonials() {parent.location.href="Customers-Testimonials.html";}
function customers(){parent.location.href="Customers.html";}
function partners(){parent.location.href="Partners.html";}		
function agenda(){window.open("pdf/madridseminar.pdf");}
function nrfjan(){window.open("email.html","", "scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,height=740,width=720, top=0, left=50");}
function login(){	window.open("http://www.ibs-softsolutions.com/eng/SoftRss.xml");}
function ibsqms(){	window.open("http://clients.ibsqms.com");}
function download(){parent.location.href="Register.html"}
function sitemap(){	parent.location.href="Site-Map.html"}		
function lsa(){window.open("lsa07ad.html","", "scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,height=690,width=540, top=50, left=50");}	
//press	
function presstop(){parent.location.href="pressrelease.html";}
function presstop1(){parent.location.href="pressrelease1.html";}
function presstop2(){parent.location.href="pressrelease2.html";}
function presstop3(){parent.location.href="Press-Release.html";}
function press6(){open("http://www.marketwire.com/mw/release.do?id=690726&k=soft%20solutions");}
function press8a(){open("http://www.nrf.com/content/default.asp?folder=press/release2006&file=priceoptimization.htm1");}
function press8(){open("http://www.dmreview.com/article_sub.cfm?articleId=1045841");}
function press9(){window.open("pdf/NRF Handout_Intel Final-2.pdf");}
function press20(){open("http://solutions.journaldunet.com/0411/041122_enquete_grande_distribution.shtml");}
//articles
function articletop1(){parent.location.href="newarticles.html";}
function articletop2(){parent.location.href="newarticles1.html";}
function articletop3(){parent.location.href="newarticles2.html";}
function article3(){window.open("FRANCE_INFO_060522.mpg");}
function article6(){window.open("pdf/lsaeng.pdf");}
function news11(){open("http://www.dmreview.com/article_sub.cfm?articleId=1045841");}
function news10(){open("http://www.nrf.com/content/default.asp?folder=press/release2006&file=priceoptimization.htm");}
function news8(){window.open("pdf/Auchan - Press Release 23 Jan 2006 Final.pdf");}
function news7(){open("http://www.marketwire.com/mw/release_html_b1?release_id=127524");}
function news6(){window.open("FRANCE_INFO_060522.mpg");}
function articletop4(){parent.location.href="newarticles3.html";}

function backk(){
	parent.location.href="career.html";
	}
function TextFun(LinkPath)
{

	parent.location.href=LinkPath;
}

function TextJSP(Link, Link2)
{
	parent.location.href=Link;
	if (Link2 != undefined) parent.f2.location.href=Link2;
}
function clients(){parent.location.href="Customers.html";}
//news
function openFile(fileName){
	window.open(fileName,"","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,top=10,left=10,height=600,width=600");
	}
function openFile1(fileName){
	window.open(fileName,"","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,top=10,left=10,height=544,width=631");
	}
function oCareer(fileName){
	window.open(fileName,"","scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,top=10,left=10,height=446,width=614");
	}


function moment(){parent.location.href="Moment-Wisdom.html";}
function moment1(){parent.location.href="Moment-Wisdom-Fr.html";}

//HOEM PAGE LINKS
function analytics(){
	parent.location.href="Ibs-Analytics.html";
	}
function infosuite(){
	parent.location.href="Info-Suite.html";
	}

//Announcement and events
function openrac() {                                     
window.open("openrac.html","", "left=20,top=20,scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,height=405,width=615"); 
}
function opmail()
	{
		window.open("email.html","", "scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,height=700,width=740, top=15, left=15");
	}

function agenda()
	{
		window.open("eventsagenda.html","", "scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,height=210,width=700, top=15, left=15");
	}
function open1() {

    window.open("sofitelmap.html","", "left=20,top=20,scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=no,height=430,width=440");
}
//links under the div
function adjustPos()
{
	document.getElementById('menu1').style.left= document.getElementById('xpos').offsetLeft+"px";
	document.getElementById('pContent').style.left= document.getElementById('xpos').offsetLeft+"px";		
}
function adjustPosh()
{
	document.getElementById('hContent').style.left= document.getElementById('xpos').offsetLeft+"px";		
}
function depthChange(z1,z2)
{

	document.getElementById("menu1").style.zIndex=z1;
	document.getElementById("pContent").style.zIndex=z2;
}
function depthChangeh(z1,z2)
{
	//alert ("depth"+ document.getElementById('menuh').style.zIndex);
	document.getElementById("hContent").style.zIndex=z1;
	document.getElementById("menuh").style.zIndex=z2;
}

//flash movies position
function divshow(fileName, w, h)
{
	document.getElementById('movCell').style.left = document.getElementById('xpos').offsetLeft + 30;
	document.getElementById('movCell').innerHTML= "<EMBED WIDTH='"+w+"' HEIGHT='"+h+"' SRC='"+fileName+"' menu='False' wmode='transparent'>";
}
function closediv(){
	document.getElementById('movCell').innerHTML= "";}

/*************** Search Scripts ****************/
function OpenS(goTo){window.opener.document.location.href=goTo;}


//Function to open the search open window by pressing ENTER from the keyboard

	

var i = 100;
var j = 100;
function cancelOnKey(event)
{
   (event.keyCode==0)?event.preventDefault():event.returnValue=false;
   event.returnValue=false;
}

function checkdate(event){
//alert(event.keyCode);
var nb1 = (event.keyCode==0)?event.which:event.keyCode;
var day = document.getElementById('dd').value;
var daylength = day.length;
if(nb1!=9){
if ((daylength==0)&&(nb1!=8)&&(nb1!=9)&&((nb1<48)||(nb1>51))&&((nb1<96)||(nb1>105))){
           alert('Entry not allowed');
           cancelOnKey(event);               event.returnValue=false;                   }
else if((nb1!=8)&&(nb1!=9)&&((nb1<48)||(nb1>57))&&((nb1<96)||(nb1>105))){
           alert('Entry not allowed');
           cancelOnKey(event);               
		   event.returnValue=false;                   }
              }
           }


function checkmonth(event){
var nb2 = (event.keyCode==0)?event.which:event.keyCode;
var month = document.getElementById('mm').value;
var monthlength = month.length;
if(nb2!=9){
   if((monthlength==0)&&(nb2.keyCode!=8)&&(nb2.keyCode!=9)&&(nb2 != 48)&&(nb2 != 49)&&(nb2 != 96)&&(nb2 != 97)){
       alert("Entry not allowed");
       cancelOnKey(event);
       event.returnValue=false;
       return;
       }
   else if((monthlength!=0)&&(nb2 != 8)&&(nb2 != 9)){

   if((month=="1")&&((nb2<48)||(nb2>50))&&((nb2<96)||(nb2>98))){
       alert("Entry not allowed");
       cancelOnKey(event);
       event.returnValue=false;
       }
   if((month!="1")&&((nb2<48)||(nb2>57))&&((nb2<96)||(nb2>105))){
       alert("Entry not allowed");
       cancelOnKey(event);
       event.returnValue=false;
       }
   }
}
}

function checkyear(event){
var year = document.getElementById('yy').value;
var nb3 = (event.keyCode==0)?event.which:event.keyCode;
var yearlength = year.length;
if((nb3!=8)&&((nb3<48)||(nb3>57))&&((nb3<96)||(nb3>105))) {
       alert("Entry not allowed");
       cancelOnKey(event);
       event.returnValue=false;
       }
}
//function next(){parent.location.href="cv.html";}
/*function check(event){
	if(document.getElementById('firstname').value==""||document.getElementById('').value==""||document.getElementById('').value==""||document.getElementById('nationality').value==""||document.getElementById('address').value==""||document.getElementById('zipcode').value==""||document.getElementById('phone').value=="")
	
	}
	*/
function check(event){
	
	    var browsefile1 = document.getElementById("File1").value;	
		var browsefile2 = document.getElementById("File2").value;
		var filename1 = browsefile1.substring(browsefile1.lastIndexOf('\\'),browsefile1.length);
		var filename2 = browsefile2.substring(browsefile2.lastIndexOf('\\'),browsefile2.length);
		alert(filename1+"   "+filename2);
		document.getElementById('FileBR1').value = filename1;
		document.getElementById('FileBR2').value = filename2;
		
		document.photoform.submit();
		document.cvform.submit();
		/*if(document.getElementById('firstname').value!="" && document.getElementById('middlename').value!="" && document.getElementById('lastname').value!="" && document.getElementById('gender').value!="" && document.getElementById('country').value!="" && document.getElementById('nationality').value!="" && document.getElementById('address').value!="" && document.getElementById('zipcode').value!="" && document.getElementById('phone').value!="")
		{
			else
			parent.location.href="cv.html";
			}*/
		
		if(document.getElementById('firstname').value=="")
		document.getElementById('firstname').className="inputmissingTXT";
	else
		document.getElementById('firstname').className="inputcv";
		
		if(document.getElementById('middlename').value=="")
		document.getElementById('middlename').className="inputmissingTXT";
	else
		document.getElementById('middlename').className="inputcv";
		
		if(document.getElementById('lastname').value=="")
		document.getElementById('lastname').className="inputmissingTXT";
	else
		document.getElementById('lastname').className="inputcv";
		
		if(document.getElementById('ge').value=="")
		document.getElementById('gender').className="inputmissingTXT";
	else
		document.getElementById('gender').className="ta1";
		
		if(document.getElementById('co').value=="")
		document.getElementById('country').className="inputmissingTXT";
	else
		document.getElementById('country').className="ta1";
		
		if(document.getElementById('nationality').value=="")
		document.getElementById('nationality').className="inputmissingTXT";
	else
		document.getElementById('nationality').className="inputcv";
		
		if(document.getElementById('address').value=="")
		document.getElementById('address').className="inputmissingTXT";
	else
		document.getElementById('address').className="inputcv";
		
		if(document.getElementById('zipcode').value=="")
		document.getElementById('zipcode').className="inputmissingTXT";
	else
		document.getElementById('zipcode').className="inputcv";
		
		if(document.getElementById('phone').value=="")
		document.getElementById('phone').className="inputmissingTXT";
	else
		document.getElementById('phone').className="inputcv";
		
				}
				
function switchLang(idlang)

{
	var location = parent.document.location.href;
	var pageName = location.substring(location.lastIndexOf('/')+1,location.length);
	var lang     = document.getElementById(idlang).src;
	var language = lang.substring(lang.lastIndexOf('/')+1,lang.lastIndexOf('.jpg'));
	if(language=="us") language="eng";
	pageName = "../" + language + "/" + pageName ;
	//alert(pageName);
	parent.document.location.href = pageName ;
}

function choosefrensh(){
	parent.document.location.href='../fr/index.html';
	}
function choosespan(){
	parent.document.location.href='../sp/index.html';
	}

//left menu function 
function pressLink(Links)
{
parent.location.href=Links;
}





function disableEnterKey(e)
{
     var key;

     if(window.event)
          key = window.event.keyCode;     //IE
     else
          key = e.which;     //firefox

     if(key == 13)
          return false;
     else
          return true;
}

function openWindowNew(even)
    {	
		var codeTouche=(even.keyCode==0)?even.which:even.keyCode;   
 //alert(codeTouche);
		if(codeTouche == 13 ){
			even.returnValue = false;
			if(searchv)entryNew();
			
		}
		//myKeyword = document.getElementById("keyword").value;
	 } 




function callMenu(){
document.getElementById("softMenu").innerHTML=softM;
}
function MomentWisdom(){
document.location.href="Moment-Wisdom.html"
}

var searchv = false;
var myvall;
var timeO;
var args;
function entryNew() {
if(searchv){
var wor = document.getElementById("keyword").value;
		if(wor == ""){
		alert("First you must enter a keyword to search for.");
  		//return false;
		}else{
		//document.location.href="http://89.108.169.233:80/soft/engV6/searchR.jsp?param="+wor;

		 myvall = document.getElementById('keyword').value;
		 window.name = myvall;
		document.location.href="searchResults.html";
		}
}else{
//alert("First you must enter a keyword to search for.");
}
return false;
}

function deletesearch(){searchv = true;
			if(document.getElementById("keyword").value=="Search")
		document.getElementById("keyword").value="";
}

function ressearch(){
			if(document.getElementById("keyword").value==""){
		document.getElementById("keyword").value="Search";
		searchv = false;
}
}

function MoverTopM(id){
document.getElementById(id).className="Mover"
}
function MoutTopM(id){
document.getElementById(id).className="Mout"
}

