function writeLink(href,text,cl)
{
	if(cl==null)cl='l2';
	document.write('<a href="'+href+'" class="'+cl+'">'+text+'</a>');
}

function switchCountry(country)
{

	switch(country)
	{
		case 'FR' : location.href= "http://www.oboulo.com/?lang=fr";
		break;
		case 'EN' : location.href= "http://en.oboulo.com/?lang=en";
		break;
		case 'IN' : location.href= "http://en.oboulo.com/?lang=in";
		break;
		case 'PT' : location.href= "http://pt.oboulo.com/";
		break;	
		default:location.href= "http://www.oboulo.com/?lang=fr";
		break;		
	}
}

function writeSwapy(id,doc,type,start,text,cl,S,T,L,order,sort,ratio)
{
	//alert("hai");
	document.write('<a href="javascript:swapy(\''+ id +'\',\''+ doc+'\',\''+ type+'\',\''+ start+'\',\''+ S+'\',\''+ T+'\',\''+ L+'\',\''+ order+'\',\''+ sort+'\',\''+ ratio+'\');" class="'+cl+'">'+text+'</a>');
}

function copen(a)
{
	var x=window.open(a,'cvopen','top=50,left=50,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=620,height=350');
	x.focus();
}
function nopen(a)
{
	var x=window.open(a,'newsletter','top=0,left=0,toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=800,height=170');
	x.focup();
}

function setValue(target,from)
{
	document.getElementById(from).value = document.getElementById(target).value;
}

function checkSending2(error)
{
	if(document.getElementById('choice').value == "")
	{
		alert(error);
	}
	else
	{
		show("sendingDoc");
		location.href = "#document2";
	}
	return true;
}