function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}
YAHOO.namespace("example.container");
function getquickblockfromhead(type)
{
	
var SuccessQuickBlockHead = function(o){
	 if(o.responseText.indexOf('The server is about to reboot.The server will be available after') != -1)
{window.location.href='/warning.jsp?param=10';
return ;
}
  var res = o.responseText.split('<DIV class="notification-email" id="add">');
  document.getElementById('samplediv').innerHTML=o.responseText;
  if(type=='1')
 {
  document.getElementById('spUnderHd').innerHTML = "<a href='/'>Home</a> &gt;Quicklist" ;
 }
else 
{
document.getElementById('spUnderHd').innerHTML = "<a href='/'>Home</a> &gt;Block List"  ;
}
}
var FailureQuickBlockHead = function(o){
 YAHOO.log("The failure handler was called; this transaction aborted.  tId: " + o.tId + ".", "info", "example");
};
var callbackQuickBlockHead =
{
 success: SuccessQuickBlockHead,
  failure: FailureQuickBlockHead,
  argument: { foo:"foo", bar:"bar" },
  timeout: 900000000
};
var sUrlQuickBlockHead ="";
if(type=='1'){
document.getElementById('footerhideenvalhead').value='QUICKLIST';
}
else{
document.getElementById('footerhideenvalhead').value='BLOCKLIST';}
document.getElementById('footerlinkhead').submit();
}
var loader = new YAHOO.util.YUILoader();


function viewProfileModal(type,uid,searchtype,contact,touserid){
 try{
 YAHOO.example.container.dialogmodaluserprofile.hide();
 }catch(e){}
 try{
  viewProfileModal2(type,uid,searchtype,contact,touserid);
 }catch(e){
  loadJS('/js/search.js***/js/tellfriend.js***/js/mapregistration.js');
 loader.onSuccess = function() { 
           viewProfileModal2(type,uid,searchtype,contact,touserid);
}; 
}
}
function overlay(curobj, subobjstr, opt_position,value,type){
 try{testsearch();
  overlay2(curobj, subobjstr, opt_position,value,type);
  return false;
 }catch(e){ 
     loadJS('/js/search.js');  
  loader.onSuccess = function() { 
  overlay2(curobj, subobjstr, opt_position,value,type);
  return false;
     }; 
  return false;
 }
}
function overlayHome(curobj, subobjstr, opt_position,value,type){
 try{
  testsearch();
  overlayHome2(curobj, subobjstr, opt_position,value,type);
  return false;
 }catch(e){ 
     loadJS('/js/search.js');  
  loader.onSuccess = function() { 
  overlayHome2(curobj, subobjstr, opt_position,value,type)
  return false;
     }; 
  return false;
 }
}
function viewbyId2(){
 try{
         viewbyId();
 }catch(e){
  loadJS('/js/search.js***/js/tellfriend.js***/js/mapregistration.js');
 loader.onSuccess = function() {                  
         viewbyId();
     }; 
 }
}

function sumsearchfromright2(){
 try{
         sumsearchfromright();
 }catch(e){
  loadJS('/js/search.js***/js/tellfriend.js');
 loader.onSuccess = function() {                  
         sumsearchfromright();
     }; 
 }
}
function getlog(type,context) {
   
 try{getlog2(type,context)
 }catch(e){
  loadJS('/js/index.js***/js/phase_one_reg.js');
  loadJS('/js/createImageList.js');
 loader.onSuccess = function() {
      
      getlog2(type,context); }; }
}
function forgotPassHome(context){
 try{forgotPass1(context);
 }catch(e){
  loadJS('/js/password.js');
 loader.onSuccess = function() {                  
         forgotPass1(context);
     }; }}
function loadJS(jsnames){
   var jsarry = jsnames.split('***');
  var loadit=new YAHOO.util.YUILoader({ 
 base: '/js/yui/',                     
 loadOptional: false,
     onSuccess: function() {
      for(i=0;i<jsarry.length;i++){
    if(i==0){   
           loader.addModule({ 
           name:jsarry[i],                                 
           type:'js',
     fullpath:jsarry[i]   
          }); 
    }else{
     loader.addModule({ 
           name:jsarry[i],                                
           type:'js',
     fullpath:jsarry[i],   
     requires:[jsarry[i-1]]  
         }); 
    }
   }
        loader.require(jsarry[jsarry.length-1]); 
         loader.insert() ;                       
     } 
 })
 loadit.insert();  
}
function invitefriend(){
try{invitefriend2();}catch(e){loadJS('/js/invite.js');
 loader.onSuccess = function() { invitefriend2();};}
}
function inboxPath(path){
   document.getElementById("inbox").href=path;
}
function managePlan(context,type,divId){
     if(typeof(divId) != 'undefined'){
            highlight(divId);
 }  
try{managePlan2(context,type);}catch(e){loadJS('/js/subscription.js');
 loader.onSuccess = function() {                  
          managePlan2(context,type);};}
}
function closemodal(type){
 try{
	 
  if(type==1)
   document.getElementById('videoblocktr').innerHTML='';
		

 }catch(e) {
 }
 YAHOO.example.container.dialogmodaluserprofile.hide();
 try{
 var chkqb = document.getElementById('chkquickdiv').innerHTML;
 if(chkqb.indexOf('Quick List')!=-1){editInfo('/getQuickList.do','quicklist','',15,true)}
 }catch(e){}
 try{
 var chkbl = document.getElementById('chkblockdiv').innerHTML;
 if(chkbl.indexOf('Block List')!=-1){editInfo('/getBlockList.do','blocklist','',16,true)}
 }catch(e){}
}
var casteArray = Array();
var xmlHttp2;
function openMyaccount(){
 window.location='/myaccountIntro.do';
}
function checkSelect(id,value,ob,total){
 var count = 0; for (var i = 0; i < ob.options.length; i++){ 
   if (ob.options[ i ].selected) {
   if(count>=eval(total)){      
     ob.options[ i ].selected=false;
     document.getElementById('m'+id).innerHTML="You Have already selected " +total+" different " + value;
    // return;
   }count++;
  } }
  if(count<=eval(total))
      document.getElementById('m'+id).innerHTML='';
  if(count>0){
       document.getElementById('pchk'+id).checked=true;
  }
  else
     document.getElementById('pchk'+id).checked=false;
  }
function checkselection(id,total){
 count = 0; 
 total=10;
 for(i=1 ; i<=10; i++){ if(id != i){
  if(document.getElementById('pchk'+i).checked == true){
   count++;
  }}}
 if(count >=eval(total)){
  document.getElementById('pchk'+id).checked =false;
 }
 if(document.getElementById('pchk'+id).checked ==false){
  if(id=='4')
    ob= document.getElementById('caste2')
   if(id=='5')
    ob= document.getElementById('occu')
    if(id=='6')
    ob= document.getElementById('edu')
    if(id=='4' || id=='5' || id=='6')
    for (var i = 0; i < ob.options.length; i++){ 
        ob.options[ i ].selected=false;
     }
    if(id=='7'){
     len = document.familyProfileForm.bodyType2.length
     for (i = 0; i <len; i++) {  
     document.familyProfileForm.bodyType2[i].checked=false
         }
    }
    if(id=='8'){
     len = document.familyProfileForm.maritalStatus2.length
     for (i = 0; i <len; i++) {
   document.familyProfileForm.maritalStatus2[i].checked=false
         }
    }
  try{
  document.getElementById('m'+id).innerHTML='';
  }catch(e){}
 }
 
 }
 
 function getSelected(value,id){
  //alert('aaaaa');
   chosen = ""
   if(value='bt'){
           len = document.familyProfileForm.bodyType2.length
     for (i = 0; i <len; i++) {
if (document.familyProfileForm.bodyType2[i].checked) {
chosen = document.familyProfileForm.bodyType2[i].value
}
}
   }
 if(value='ms'){
       len = document.familyProfileForm.maritalStatus2.length
   for (i = 0; i <len; i++) {
if (document.familyProfileForm.maritalStatus2[i].checked) {
chosen = document.familyProfileForm.maritalStatus2[i].value
}
}}


if (chosen == "") {
;
}
else {
document.getElementById('pchk'+id).checked =true;
}
  
 }
//abuse//
function abuse(uid,type){
YAHOO.namespace("example.container");
//YAHOO.com.lit.dialog3.show();
if(type != "add"){
YAHOO.example.container.dialogmodaluserprofile = new YAHOO.widget.Dialog("modaluserprofile", 
{width : "auto",draggable: false,fixedcenter :true,visible : false,constraintoviewport : true,modal:true,close:true} ); 
YAHOO.example.container.dialogmodaluserprofile.render(document.body); 
YAHOO.example.container.dialogmodaluserprofile.cfg.setProperty("width","430px");
}
 var SuccessFeatureAction = function(o){
if(o.responseText.indexOf('The server is about to reboot.The server will be available after') != -1)
{window.location.href='/warning.jsp?param=10';
return ;
}
  if(uid.length==0)
  YAHOO.example.container.dialogmodaluserprofile.setHeader("Abuse");
  else
  YAHOO.example.container.dialogmodaluserprofile.setHeader("Abuse For UID "+uid);
  var responseTextAbuse = o.responseText;
  var reponse1=responseTextAbuse.split('<div id="error-main">');
  if(type != "add"){
  YAHOO.example.container.dialogmodaluserprofile.setBody(reponse1[1]);
  YAHOO.example.container.dialogmodaluserprofile.show();
  YAHOO.example.container.dialogmodaluserprofile.center();
  }
  if(type == "add"){
   document.getElementById("info-messageabuse").style.display="block";
   document.getElementById("info-messageabuse").innerHTML=reponse1[1];
  }
     YAHOO.log("The example has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "example");

 };
 var FailureFeatureAction = function(o){
  //YAHOO.com.lit.dialog3.hide();
 };
 var callbackFeatureAction =
 {
  success: SuccessFeatureAction ,
  failure: FailureFeatureAction ,
  argument: { foo:"foo", bar:"bar" },
  timeout: 900000000
 };
 sUrl =jsContextPath+"/abuseuser.do?userid="+uid+"&type="+type;
 if(type == "add"){
  var hasemail = document.getElementById("hasemail").value;
 if(hasemail == 'Y'){
 var emailidfield = document.getElementById("emailId").value;
 if(emailidfield.length==0 && hasemail == 'Y')
 {
   document.getElementById("info-messageabuse").style.display="block";
   document.getElementById("info-messageabuse").innerHTML = "Please write an EmailId.";
   //closeAbuseForWt();
  return;
 }
 }
 var answerfield = document.getElementById("answerid").value;
 var commentfield = document.getElementById("abuse1").value;
 if(answerfield == 'O' && commentfield.length<3){
 document.getElementById("info-messageabuse").style.display="block";
 document.getElementById("info-messageabuse").innerHTML = "Please write your comment.";
  //closeAbuseForWt();
  return;
 }
 YAHOO.util.Connect.setForm("abuseform",false);
 }
 var obj1 = YAHOO.util.Connect.asyncRequest('GET', sUrl, callbackFeatureAction);
}
//livehelp
function openlivehelp2(){
 window.open("http://www.shadiface.com/livechat/crafty/" + 'livehelp.php?department=' + 2 + '&cslheg=1&serversession=1', 'chat54050872', 'width=585,height=390,menubar=no,scrollbars=1,resizable=1');
}

//close photo-video div
function showdelay(){
 try{
closePhotoVideoForWt();
 }catch(e){}
}


function abuse2(uid,type){
YAHOO.namespace("example.container");
//YAHOO.com.lit.dialog3.show();
if(type != "add"){
YAHOO.example.container.dialogmodaluserprofileicon = new YAHOO.widget.Dialog("modaluserprofileicon", 
{width : "auto",draggable: false,fixedcenter :false,visible : false,constraintoviewport : true,modal:true,close:true} ); 
YAHOO.example.container.dialogmodaluserprofileicon.render(document.body); 
YAHOO.example.container.dialogmodaluserprofileicon.cfg.setProperty("width","430px");
}
 var SuccessFeatureAction = function(o){
if(o.responseText.indexOf('The server is about to reboot.The server will be available after') != -1)
{window.location.href='/warning.jsp?param=10';
return ;
}
  //YAHOO.com.lit.dialog3.hide();
  var responseTextAbuse = o.responseText;
  var reponse1=responseTextAbuse.split('<div id="error-main">');
  if(type != "add"){
  if(uid.length==0)
  YAHOO.example.container.dialogmodaluserprofileicon.setHeader("Abuse");
  else
  YAHOO.example.container.dialogmodaluserprofileicon.setHeader("Abuse For UID "+uid);
  
  }
  if(type != "add"){
  YAHOO.example.container.dialogmodaluserprofileicon.setBody(reponse1[1]);
  YAHOO.example.container.dialogmodaluserprofileicon.show();
  YAHOO.example.container.dialogmodaluserprofileicon.center();
  }
  if(type == "add"){
	var temp = reponse1[1].split('<br>');
   document.getElementById("info-messageabuse").style.display="block";
   if(temp.length<2)
   document.getElementById("info-messageabuse").innerHTML=reponse1[1];
   else
   document.getElementById("info-messageabuse").innerHTML=temp[1];
  }
     YAHOO.log("The example has finished loading; as you interact with it, you'll see log messages appearing here.", "info", "example");

 };
 var FailureFeatureAction = function(o){
  //YAHOO.com.lit.dialog3.hide();
 };
 var callbackFeatureAction =
 {
  success: SuccessFeatureAction ,
  failure: FailureFeatureAction ,
  argument: { foo:"foo", bar:"bar" },
  timeout: 900000000
 };
 sUrl =jsContextPath+"/abuseuser.do?userid="+uid+"&type="+type;
 if(type == "add"){
  var hasemail = document.getElementById("hasemail").value;
 if(hasemail == 'Y'){
 var emailidfield = document.getElementById("emailId").value;
 if(emailidfield.length==0 && hasemail == 'Y')
 {
   document.getElementById("info-messageabuse").style.display="block";
   document.getElementById("info-messageabuse").innerHTML = "&nbsp;&nbsp;&nbsp;Enter Valid E-Mail ID";
   closeAbuseForWt();
  return;
 }
 }
 var answerfield = document.getElementById("answerid").value;
 var commentfield = document.getElementById("abuse1").value;
 if(answerfield == 'O' && commentfield.length<3){
 document.getElementById("info-messageabuse").style.display="block";
 document.getElementById("info-messageabuse").innerHTML = "&nbsp;&nbsp;&nbsp;Please write your comment.";
  //closeAbuseForWt();
  return;
 }
 YAHOO.util.Connect.setForm("abuseform",false);
 }
 var obj1 = YAHOO.util.Connect.asyncRequest('GET', sUrl, callbackFeatureAction);
}
//livehelp

function checkLoginMyAccount(){
  
loginValue = document.getElementById("hiddenlogin").innerHTML ;
if(loginValue == "LOGIN" || loginValue.length >20)
{
     window.location = "/myaccountIntro.do";  
}
else{
 //alert('NOTLOGIN');
  window.location="/login.do";
 
}
 
}
function getModalSearch(type){
 overlayclose('subcontentX');
 getDetailSearch(type);  
}


        function charcount(type){
   var c =0;
   if(type==2){
            c= document.getElementById("DESCRIPTION2").value.length
            document.getElementById("error2").innerHTML = "You typed  "+c +" characters"
            document.getElementById("error2").style.display="block"
   }
   else {
    //alert(type)
    if(type==3)
     c= document.getElementById("bdy2").value.length ;
    else if(type==4)
    c= document.getElementById("bdy55").value.length ;
    else
     c= document.getElementById("DESCRIPTION1").value.length
   
   //alert(c);
   if(type==4){
            document.getElementById("error1").innerHTML = "You typed  "+c +" characters"
            document.getElementById("error1").style.display="block"
   }
   else{
   document.getElementById("error").innerHTML = "You typed  "+c +" characters"
            document.getElementById("error").style.display="block"
   }
   }
        }
  
function checkLoginforPlan(context,plan,chkType,planpage){
	//alert("context="+context+"::plan="+plan+"::chkType="+chkType+"::planpage="+planpage) ;
	try{
 openDialogSub();
 }catch(e){}
 try{
  closeDialogSub(); 
 }catch(e){}
 try{
  YAHOO.example.container.dialogmodaluserprofileicon.hide(); 
 }catch(e){}
 try{
  YAHOO.example.container.dialogmodaluserprofile.hide(); 
 }catch(e){}
 var handleSuccessExPlan = function(o){
var res1 = o.responseText.split('<div id="error-main">');
if(o.responseText.indexOf('The server is about to reboot.The server will be available after') != -1)
{window.location.href='/warning.jsp?param=10';
return ;
}
 YAHOO.namespace('com.thecodecentral');
 YAHOO.com.thecodecentral.m1 = new YAHOO.widget.Dialog("subscriptionlogin", 
  {width:"auto",draggable: false,fixedcenter :true,visible : false,constraintoviewport : true,   modal:true,close:true} );
 YAHOO.com.thecodecentral.m1.render(document.body);
 try{
 closeDialogSub();
 }catch(e){}
 try{YAHOO.example.container1.dialogP.hide();}catch(e){}
 //alert(res1[1].length) ;
 if(res1[1].length<15)
  subscribe(context,plan,chkType);
 /* try{
  closeSearchForWt();	 }catch(e){}*/
 else if(res1[1].length<450){
	 var array = new Array('330px','Are you sure?',res1[1],res1[2]);
	 modalYesNo(array);  
 }else{ 
 document.getElementById('subscriptionloginhd').style.display='none';
 YAHOO.com.thecodecentral.m1.setBody("<div style='width:500px;'>"+res1[1]+"</div>");
 YAHOO.com.thecodecentral.m1.show();
 }
 
}
var handleFailureExPlan = function(o){
YAHOO.log("The failure handler was called; this transaction aborted.  tId: " + o.tId + ".", "info", "example");
closeDialogSub();

}
var callbackExPlan =
{
  success: handleSuccessExPlan,
  failure: handleFailureExPlan,
  argument: { foo:"foo", bar:"bar" },
  timeout: 900000
};
 
 
 
 if(chkType==1){
	 if(planpage==1)
    	sUrl ="/chkUserStat.do?planPage=Y";
	else
		sUrl ="/chkUserStat.do";
     
 }
 else{
	 if(planpage==1)
    	sUrl ="/chkUserStat.do?planPage=Y&plan="+plan;
	else
		sUrl ="/chkUserStat.do?plan="+plan;
 }
 //alert(sUrl) ;
 try{chk_sub();
 var obj1 = YAHOO.util.Connect.asyncRequest('POST', sUrl, callbackExPlan);
 }catch(e){

  loadJS('/js/subscription.js'); 
 loader.onSuccess = function() { 
           var obj1 = YAHOO.util.Connect.asyncRequest('POST', sUrl, callbackExPlan);
 }
}; 
 //var obj1 = YAHOO.util.Connect.asyncRequest('POST', sUrl, callbackExPlan);
 
}

function viewContact1(auth){
 document.getElementById('contactInfo').innerHTML ='<img src="/images/ajax-loader2.gif" />';
 document.getElementById('NoteId').style.display='none';
 var hSAC = function(o){
YAHOO.log("The success handler was called; this transaction did not abort.  tId: " + o.tId + ".", "info", "example");
if(o.responseText.match('Session Time out. Please Login Again')!=null)
{window.location='/sessionout.do';
return ;
}
//alert(o.responseText);
var reponse1=o.responseText.split('<div id="error-main">');

document.getElementById('contactInfo').innerHTML =reponse1[1];

if(reponse1[1].indexOf('CONTACT-INFO')!=-1){
	document.getElementById('sendbyrequest').style.display='none';
	document.getElementById('sendbyrequest2').style.display='none';
}
 }
var hFAC = function(o){
  YAHOO.log("The failure handler was called; this transaction aborted.  tId: " + o.tId + ".", "info", "example");
};
var cbAC =
{
  success: hSAC,
  failure: hFAC,
  argument: { foo:"foo", bar:"bar" },
  timeout: 9000000
};
    
                     
         var urlbilling ="/viewcontact.do?auth="+auth;
 var obj1 = YAHOO.util.Connect.asyncRequest('POST', urlbilling, cbAC);      
          
 
}
function modalYesNo(strArray){
 var func =strArray[3];
 var noFunc = 'YAHOO.example.container.dialogmodaluserYesNO.hide()';
 try{
  var tmpArray = strArray[4]
  var arg='';
  for(var i=0;i<tmpArray.length;i++){
   if(i==tmpArray.length-1)
   arg= arg+"'"+tmpArray[i]+"'";
   else
   arg= arg+"'"+tmpArray[i]+"',";
  }
  func = strArray[3]+"("+arg+")";
  try{
   var temArray2 = strArray[5];
  for(var i=0;i<temArray2.length;i++){
   func = func+';'+temArray2[i];
  }
  }catch(e){}
 }catch(e){}
 try{
 noFunc = (typeof strArray[6]!="undefined")? noFunc+';'+strArray[6]:noFunc;
 }catch(e){}
 YAHOO.example.container.dialogmodaluserYesNO = new YAHOO.widget.Dialog("modaluserOk", 
{width : strArray[0] ,draggable: false,fixedcenter :true,visible : false,constraintoviewport : true,modal:true,close:false} );
YAHOO.example.container.dialogmodaluserYesNO.setHeader("<div align='center'>"+strArray[1]+"</div>");
YAHOO.example.container.dialogmodaluserYesNO.setBody("<div align='center'><br/>"+strArray[2]+"<br/><br/><input type='button' class='yellow-button' name='btn1' value='Yes' onclick=YAHOO.example.container.dialogmodaluserYesNO.hide();"+func+"; />&nbsp;&nbsp; <input type='button' name='btn1' class='yellow-button' value='No' onclick="+noFunc+" /></div><br/>");
YAHOO.example.container.dialogmodaluserYesNO.render(document.body);
YAHOO.example.container.dialogmodaluserYesNO.show();
}

function modalOk(strArray){
 YAHOO.example.container.dialogmodaluserOk = new YAHOO.widget.Dialog("modaluserOk", 
{width : strArray[0] ,draggable: false,fixedcenter :true,visible : false,constraintoviewport : true,modal:true,close:false} );
YAHOO.example.container.dialogmodaluserOk.setHeader("<div align='center'>"+strArray[1]+"</div>");
var pageid = "" ;
try{
pageid = document.getElementById("pageid").value ;
if(pageid=='quicklist'){
YAHOO.example.container.dialogmodaluserOk.setBody("<div align='center'><br/>"+strArray[2]+"<br/><input type='button' class='yellow-button' name='btn1' value='OK' onclick="+strArray[3]+";YAHOO.example.container.dialogmodaluserOk.hide();editInfo('/getQuickList.do','quicklist','','15'); /></div><br/>");
}
else if(pageid=='blocklist'){
YAHOO.example.container.dialogmodaluserOk.setBody("<div align='center'><br/>"+strArray[2]+"<br/><input type='button' class='yellow-button' name='btn1' value='OK' onclick="+strArray[3]+";YAHOO.example.container.dialogmodaluserOk.hide();editInfo('/getBlockList.do','blocklist','','16'); /></div><br/>");
}
else{
YAHOO.example.container.dialogmodaluserOk.setBody("<div align='center'><br/>"+strArray[2]+"<br/><input type='button' class='yellow-button' name='btn1' value='OK' onclick="+strArray[3]+";YAHOO.example.container.dialogmodaluserOk.hide(); /></div><br/>");
}
}//end try
catch(e){
YAHOO.example.container.dialogmodaluserOk.setBody("<div align='center'><br/>"+strArray[2]+"<br/><input type='button' class='yellow-button' name='btn1' value='OK' onclick="+strArray[3]+";YAHOO.example.container.dialogmodaluserOk.hide(); /></div><br/>");	
}
YAHOO.example.container.dialogmodaluserOk.render(document.body);
YAHOO.example.container.dialogmodaluserOk.show();

}

function Tip(obj,text,pos,x,y){
   document.getElementById('ToolTiptxt'+pos).innerHTML=text;
   if (document.getElementById){
  var curobj = document.getElementById(obj);    
  var subobj=document.getElementById('ToolTip'+pos)
  subobj.style.display=(subobj.style.display!="block")? "block" : "none"
  var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
  var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
  subobj.style.left=(eval(xpos)+x)+"px"
  subobj.style.top=(eval(ypos)+y)+"px";
  return false
 }
 else
  return true
   
}

function hideTip(pos){
      document.getElementById('ToolTip'+pos).style.display="none";
}

function acceptProfile(type,uid){
try{
	YAHOO.example.container.dialogmodaluserprofile.hide();
	YAHOO.example.container.dialogmodaluserprofileicon.hide();
	YAHOO.example.container.dialogmodaluserOk.hide();
}catch(e){}
	viewProfileModal2(type,uid,2,1);
}

String.prototype.trim = function() {
a = this.replace(/^\s+/, '');
return a.replace(/\s+$/, '');
};
function sendToVisit(id,div){
	//loadJS('/js/visitthisprofile.js') ;
    compVisitThisProfile("/getFeatureAction.do?type=1&userid="+id+"&touserid=undefined",'visitThisProfile',div) ;
}

function viewProfileModal3(type,uid,searchtype,touserid){
 try{
 YAHOO.example.container.dialogmodaluserprofile.hide();
 }catch(e){}
 try{
  viewProfileModal33(type,uid,searchtype,touserid);
 }catch(e){
  loadJS('/js/search.js***/js/tellfriend.js');
 loader.onSuccess = function() { 
           viewProfileModal33(type,uid,searchtype,touserid);
}; 
}
}

